/*
 * SerialBuffer.h
 *
 *  Created on: 04/10/2014
 *      Author: fede
 */

#ifndef SERIALBUFFER_H_
#define SERIALBUFFER_H_

#include <iostream>
#include <string.h>
#include "VarBuffer.h"

class SerialBuffer : public VarBuffer {
public:
	SerialBuffer();

	SerialBuffer(unsigned int maxSize);

	void clear();
	int pack(const void *object, unsigned short int size);
	int unpack(void *objetc);


	 ~SerialBuffer();

private:
	    unsigned int ultimoLeido;

};

#endif /* SERIALBUFFER_H_ */
